'use strict';
const crypto = require('crypto');
module.exports = app => {
    const { STRING, INTEGER, DATE, ENUM, TEXT } = app.Sequelize;
    // 配置（重要：一定要配置详细，一定要！！！）
    const Livesp = app.model.define('livesp', {
        id: {
            type: INTEGER(20).UNSIGNED,
            primaryKey: true,
            autoIncrement: true
        },
        videoname: {
            type: STRING(50),
            allowNull: false,
            defaultValue: '',
            comment: '视频标题',
        },
        videourl: {
            type: STRING(130),
            allowNull: false,
            defaultValue: '',
            comment: '视频路径',
        },
        imageurl: {
            type: STRING(130),
            allowNull: false,
            defaultValue: '',
            comment: '图片路径',
        },
        order: {
            type: STRING(50),
            allowNull: false,
            defaultValue: '',
            comment: '视频简介',
        },
        created_at: DATE,
        updated_at: DATE
    });



    return Livesp;
};